package com.AICoupon.aiservice;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;
import reactor.core.publisher.Flux;

@AiService(
        chatModel = "openAiChatModel",// 使用 OpenAi 模型
        wiringMode = AiServiceWiringMode.EXPLICIT,//手动装配
        streamingChatModel = "openAiStreamingChatModel",
        //chatMemory = "chatMemory",//配置会话记忆对象
        chatMemoryProvider = "chatMemoryProvider",//配置会话记忆提供者
        tools = "reservationTool"
)
public interface ConsultantService {

    public Flux<String> chat(@MemoryId String memoryId,@UserMessage String message);
}
